home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 25
/
Aminet 25 (1998)(GTI - Schatztruhe)[!][Jun 1998].iso
/
Aminet
/
dev
/
amos
/
AMOS0398.lzh
/
AMOSLIST
/
000215_amos-request@svcs1.digex.net_Sun Mar 22 15:28:19 1998.msg
< prev
next >
Wrap
Text File
|
1998-04-01
|
3KB
|
101 lines
>From amos-request@svcs1.digex.net Sun Mar 22 15:28:19 1998
Received: from svcs1.digex.net (svcs1.digex.net [204.91.197.224])
by pony-2.mail.digex.net (8.8.8/8.8.8) with ESMTP id PAA04997
for <mcox@access.digex.net>; Sun, 22 Mar 1998 15:28:19 GMT
Received: (from daemon@localhost)
by svcs1.digex.net (8.8.5/8.8.5) id JAA23818
for amos-out; Sun, 22 Mar 1998 09:03:58 -0500 (EST)
Received: from pony-2.mail.digex.net (pony-2.mail.digex.net [204.91.241.6])
by svcs1.digex.net (8.8.5/8.8.5) with ESMTP id JAA23815
for <amos-list@svcs1.digex.net>; Sun, 22 Mar 1998 09:03:57 -0500 (EST)
Received: from mail.netwave.net (mail.netwave.net [207.112.132.11])
by pony-2.mail.digex.net (8.8.8/8.8.8) with ESMTP id JAA25281
for <amos-list@access.digex.net>; Sun, 22 Mar 1998 09:03:56 -0500 (EST)
Received: from pppsrs107.netwave.net (pppsrs107.netwave.net [209.100.37.107])
by mail.netwave.net (8.8.5/8.8.5) with SMTP id IAA12559;
Sun, 22 Mar 1998 08:23:50 -0600
Date: 21 Mar 98 14:43:01 -0600
From: "Rand R. Fredricksen" <rand@mail.netwave.net>
Subject: Re: Procedures & Gosub's
To: "Morten Bolstad" <mortenbo@login.eunet.no>
In-Reply-To: <yam135.1930.2014451080@login.eunet.no>
Message-ID: <1642.384T95T8832168@netwave.net>
MIME-Version: 1.0
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7bit
Cc: amos-list@access.digex.net
X-Mailer: THOR 2.5a (Amiga;TCP/IP)
Status: O
X-Status:
Morten Bolstad digitized on 16-May-78 08:04:38:
MB> Hello!
MB> I have a little coding problem that i think most of you are able
MB> to help me out with quite easy.
Well, I never have used Procedures much, so this is just a guess...
Let's imagine 'a' is your 'Movement' procedure.
MB> a
MB> Procedure a
MB> b
^- delete this line
when 'a' exits it should jump back to 'b'
MB> endproc
MB> procedure b
MB> a
MB> endproc
AFAIK, Procedures are little programs, all by themselves. They can't
call subroutines that aren't contained within the Procedure, which is
why I don't use them. I use all Subroutines. But I think a Procedure
can call another Procedure.
MB> The reason i want it to be like one of these exampels is that
MB> i'am gonna have
MB> 6 procedures and then it takes up to much space and memory to
MB> have the code in movment 6 times, when i dont need to have it
MB> more than one time.
Then you can have:
Procedure c
Paste Bob, b,x,y
a
Endproc
Procedure d
Locate x,y:Print
a
Endproc
Procedure e
Do Something Else
a
Endproc
etc...
MB> Oki, please help me with this prob!!!
Hope this helps :)
MB> Morten Bolstad.
Greets,
- Rand
--
______ ________________________ ////
| _ \ _____ ___ __ _____ mailto:rand@netwave.net ////
| [_} )(___ \ ( \ | ( _ \ http://www.netwave.net/members/rand
| _ ( / __ \ | \| | |_} ) ////
|__| \___)(_______(__|\____(_____/ \\\\////
{{:-(*) <-- Klingon eating a Tribble.